<?php
include("classes/batch.php");
$batch = new batch;
$year = $batch->batch_year();
?>
<div id="reg_container">
    <div id="reg_title">Alumni Registration Form</div>
    <div id="reg_subtitle"></div>
    <div id="reg_content">
        <form id="frm_reg" name="frm_reg" method="post">
            <table>
                <tr align="left">
                    <td colspan="3" class="labels"><label>Account Information</label></td>
                </tr>
                <tr align="left">
                    <td>Username</td>
                    <td>:</td>
                    <td><input type="text" name="txtusername" class="txtbox" placeholder="Your User Name" /></td>
                </tr>
                <tr align="left">
                    <td>Password</td>
                    <td>:</td>
                    <td><input type="password" name="txtpassword" class="txtbox" placeholder="Your Password" /></td>
                </tr>
                <tr align="left">
                    <td>Re-Type PW</td>
                    <td>:</td>
                    <td><input type="password" name="txtretype" class="txtbox" placeholder="Your Re-Type Password" /></td>
                </tr>
                <tr align="left">
                    <td colspan="3" class="labels"><label>Personal Information</label></td>
                </tr>
                <tr align="left">
                    <td>First Name</td>
                    <td>:</td>
                    <td><input type="text" name="txtfname" class="txtbox" placeholder="Your First Name" /></td>
                </tr>
                <tr align="left">
                    <td>Middle Name</td>
                    <td>:</td>
                    <td><input type="text" name="txtmname" class="txtbox" placeholder="Your Middle Name" /></td>
                </tr>
                <tr align="left">
                    <td>Last Name</td>
                    <td>:</td>
                    <td><input type="text" name="txtlname" class="txtbox" placeholder="Your Last Name" /></td>
                </tr>
                <tr align="left">
                    <td>Gender</td>
                    <td>:</td>
                    <td>
                        <select name="selgender" class="combo">
                            <option value="default">--Select One--</option>
                            <option value="Male">Male</option>
                            <option value="Female">Female</option>
                        </select>
                    </td>
                </tr>
                <tr align="left">
                    <td>Birthdate</td>
                    <td>:</td>
                    <td><input type="text" id="date_picker" name="txtbday" class="txtbox" placeholder="Your Birthday" /></td>
                </tr>
                <tr align="left">
                    <td>Contact Number</td>
                    <td>:</td>
                    <td><input type="text" name="txtcontact" maxlength="11" class="txtbox" placeholder="Your Contact Number" /></td>
                </tr>
                <tr align="left">
                    <td>Email Address</td>
                    <td>:</td>
                    <td><input type="text" name="txtemail" class="txtbox" placeholder="Your Email Address" /></td>
                </tr>
                <tr align="left">
                    <td colspan="3" class="labels"><label>Address Information</label></td>
                </tr>
                <tr align="left">
                    <td>House Number</td>
                    <td>:</td>
                    <td><input type="text" name="txthousenum" maxlength="10" class="txtbox" placeholder="Your House/Street Number" /></td>
                </tr>
                <tr align="left">
                    <td>Barangay/Barrio</td>
                    <td>:</td>
                    <td><input type="text" name="txtbrgy" class="txtbox" placeholder="Your Barangay/Barrio" /></td>
                </tr>
                <tr align="left">
                    <td>City/Town</td>
                    <td>:</td>
                    <td><input type="text" name="txttown" class="txtbox" placeholder="Your City/Town" /></td>
                </tr>
                <tr align="left">
                    <td>Province</td>
                    <td>:</td>
                    <td><input type="text" name="txtprov" class="txtbox" placeholder="Your Province" /></td>
                </tr>
                <tr align="left">
                    <td colspan="3" class="labels"><label>Batch Information</label></td>
                </tr>
                <tr align="left">
                    <td>Batch Year</td>
                    <td>:</td>
                    <td>
                        <select name="selyear" class="combo">
                            <option value="default">--Select One--</option>
                            <?php foreach($year as $data) : ?>
                            <option value="<?php echo $data['BATCH']; ?>"><?php echo $data['BATCH']; ?></option>
                            <?php endforeach; ?>
                        </select>
                    </td>
                </tr>
                <tr align="center">
                    <td colspan="3" style="padding-top:20px;">
                        <input type="button" value="Register" class="button1" id="btnreg" onclick="save_data('reg_subtitle','registration/functions/register.php','frm_reg')" />
                        <input type="reset" value="Reset" class="button2" />
                    </td>
                </tr>
            </table>
        </form>
    </div>
</div>